#ifndef EMUSHROOM_H
#define EMUSHROOM_H

#include "ObEnemies.h"

class EMushRoom : public ObEnemies{
public:
	EMushRoom();
	EMushRoom(ENERMY2 nid, INFO ninfo);
	~EMushRoom();

	bool setId(int nid);
	bool setInfo(int ninfo);

	static bool checkType(int nid);
	static bool checkInfo(int ninfo);

	void collidedWith(ObObject* object, CollisionRS rs);
	void update(float dt);
	void render(ID3DXSprite* mSprite);

	static bool loadTexture();
	static bool releaseTexture();

private:
	static IDirect3DTexture9* mTex;
	static CSound* sDie;

	int mCurrentSprite;
	Action mCurrentAction;

	float count;
	float delaycount;
};

#endif